﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YY.Admin.Services.Service.User;
using YY.Admin.Services.Service;
using YY.Admin.ViewModels.Control;

namespace YY.Admin.ViewModels.SysManage
{
   public class RoleManagementViewModel : BaseViewModel
    {
        public DelegateCommand AlertDialogCommand { get; }
        public DelegateCommand ConfirmDialogCommand { get; }
        public DelegateCommand ErrorDialogCommand { get; }
        public DelegateCommand SuccessDialogCommand { get; }
        public DelegateCommand WarningDialogCommand { get; }

        public RoleManagementViewModel(
         IContainerExtension container
         ) : base(container)
        {
            AlertDialogCommand = new DelegateCommand( () =>  AlertDialogAsync());
            ConfirmDialogCommand = new DelegateCommand( () => ConfirmDialogAsync());
            ErrorDialogCommand = new DelegateCommand( () => ErrorDialogAsync());
            SuccessDialogCommand = new DelegateCommand( () => SuccessDialogAsync());
            WarningDialogCommand = new DelegateCommand( () => WarningDialogAsync());
        }

        private void WarningDialogAsync()
        {
            throw new NotImplementedException();
        }

        private void SuccessDialogAsync()
        {
            throw new NotImplementedException();
        }

        private void ErrorDialogAsync()
        {
            throw new NotImplementedException();
        }

        private void ConfirmDialogAsync()
        {
            base.Confirm("测试Confirm");
        }

        private void AlertDialogAsync()
        {
            base.Alert("测试Alert");
        }
    }
}
